package org.example.memora.service;

import org.example.memora.entity.CommunityJoinApplication;

import java.util.List;

public interface CommunityJoinApplicationService {

    /**
     * 提交加群申请
     */
    boolean applyToJoinCommunity(Long communityId, Long userId, String reason);

    /**
     * 查询某个社群的所有待审核申请
     */
    List<CommunityJoinApplication> getPendingApplications(Long communityId);

    /**
     * 审核申请（通过或拒绝）
     */
    boolean reviewApplication(Long applicationId, String status);
}

